<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
	<HEAD>
		<META NAME="generator" CONTENT="WOLips Templateengine Plug-in">
		<TITLE>WOGroovy Examples</TITLE>
	</HEAD>
	<BODY BGCOLOR=#FFFFFF>
	<webobject name = "Hyperlink"><webobject name = "String"/></webobject><br>
	<b>Groovy lets you use NSDictionaries and NSArrays like native Maps and Lists</b>
	<p>
	Here is a random list of programming languages 
	[ <webobjects name="mapsAndLists"/> ] <br>
	<font size=2><i>Check out Main.groovy#mapsAndLists() to see an example.</i></font>
	<p>
	<b>WOGroovy additions embed WebObjects & Project Wonder directly into the language</b>
	<p>
	<i>You can call valueForkey() on any object:</i><br>
	"This is a String".valueForKey("length") = <webobjects name="example1"/>
	<p>
	<i>Integer's can return an NSTimestamp:</i><br>
	1173120000.unixDate() = <webobjects name="example2"/>
	<p>
	<i>Strings can do lots of new groovy things:</i><br>
	"#,##0.00;-(#,##0.00)".numberFormatterForPattern() -> <webobjects name="example3"/><br>
	"some.property.key.path".lastPropertyKey() = <webobjects name="example4"/><br>
    "some.property.key.path".displayName() = <webobjects name="example5"/><br>
    "tomorrow".timestamp() = 	<webobjects name="example6"/><br>
    "yes".booleanValue() = <webobjects name="example7"/><br>
    <p>
    <b><i>And MUCH MUCH more... See the source code of WOGroovy's categories to see what<br>
    				else is included. This is just the tip of the iceberg</i></b>
    <p>
    <webobject name = "SomeString"/><br />
    <i>Try some for yourself:</i><br>
    <webobjects name="transcript"/><p>
    <webobjects name="form">
    <webobjects name="shell"/>
    <webobjects name="submitButton"/>
    <webobjects name="clearButton"/>
    </webobjects name="form">
    </BODY>
</HTML>